import type { Metadata } from 'next'

import './globals.css'

// 解决刷新 后antd样式 后渲染
import AntdProvider from './AntdProvider'

// 修复react19 和antd5 兼容
import '@ant-design/v5-patch-for-react-19'
import { AntdRegistry } from '@ant-design/nextjs-registry'

import Header from '@/components/Header'

export const metadata: Metadata = {
  title: 'MOGO AI 交管',
  description: '',
}

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode
}>) {
  return (
    <html
      lang='zh'
      className='h-screen overflow-y-hidden'>
      <body className='h-full select-auto'>
       <AntdRegistry>{children}</AntdRegistry>
        {/* <AntdProvider>
          
        </AntdProvider> */}
      </body>
    </html>
  )
}
